<div class="container-fluid">
	<style>
		#pad-wrapper label{
			cursor: default;
			width: 30%;
		}
	</style>
	<div id="pad-wrapper">
		<div class="table-wrapper products-table section">
			<div class="row-fluid head">
				<div class="span12">
					<h4>订单详情</h4>
				</div>
			</div>
			<div class="row-fluid head">
				<div class="span12">
					<label>订单号：<?php echo $sampleinfo['order_no']; ?></label>
					<label>订单序号：<?php echo $sampleinfo['size']; ?></label>
					<label>样本编号：<?php echo  $sampleinfo['bind_no']; ?></label>
				</div>
			</div>
			<div class="row-fluid head">
				<div class="span12">
					<label>录入编号操作员：<?php echo $sampleinfo['send_user'] ?></label>
					<label>录入编号时间：<?php if($sampleinfo['send_time']){echo date('Y-m-d H:i:s', $sampleinfo['send_time']);}?></label>
				</div>
			</div>
			<div class="row-fluid head">
				<div class="span12">
					<label>样本状态：<?php
						if (!empty($sampleinfo['bind_status'])) {
							if ($sampleinfo['bind_status'] == 1) {
								echo '订单未确认';
                            } elseif ($sampleinfo['bind_status'] == 2) {
								echo '采样盒寄出';
							} elseif ($sampleinfo['bind_status'] == 3) {
								echo '样本已绑定';
							}elseif ($sampleinfo['bind_status'] == 4) {
								echo '检测中';
							}elseif($sampleinfo['bind_status'] == 5) {
								echo '已出报告';
							}
						}
						?></label>
					<label>姓名：<?php if(isset( $sampleinfo['Data']['info_name'] )){ echo $sampleinfo['Data']['info_name'];} ?></label>
					<label>性别：<?php if(isset( $sampleinfo['Data']['info_sex'] )){ echo $sampleinfo['Data']['info_sex'];} ?></label>
                    <label>生日：<?php if(isset( $sampleinfo['Data']['info_birthday'] )){echo $sampleinfo['Data']['info_birthday'];} ?></label>
				</div>
			</div>
			<div class="row-fluid head">
				<div class="span12">
					<label>回寄快递：</label>
					<label>
						<td class="options">
							<button type="button" class=" btn-flat primary" id="express">编辑快递信息</button></li>
						</td>
					</label>
                    <label>
                        <td class="options">
                            <button type="button" class=" btn-flat primary" id="express" onclick="window.location.href='/v-sample/edit?bind_id=<?php echo $sampleinfo['bind_id']?>&size=<?php echo $sampleinfo['size'];?>'">报告编辑</button></li>
                        </td>
                    </label>
				</div>
			</div>
			<div class="row-fluid head" id="express_div" style="display:none;" >
				<div class="span12">
					<label>快递公司:<select>
						<option value ="1">中通</option>
						<option value ="2">顺丰</option>
						<option value="3">圆通</option>
					</select></label>
					<label>快递单号:<input type="text" name="" value="" /></label>
				</div>
			</div>
		</div>
		<!-- end products table -->
	</div>
	<h4>报告预览</h4>
	<?php if($sampleinfo['bind_status'] == 5): ?>
		<iframe name="left" id="rightMain" src="/report/report?bind_no=<?php echo $sampleinfo['bind_no']?>" frameborder="false" scrolling="auto" style="border:none;" width="500" height="900" allowtransparency="true"></iframe>
	<?php else: ?>
		报告未出，请先编辑报告
	<?php endif; ?>
	<style>
		h4{
			padding-bottom:25px;
		}
		label{
			display:inline-block;
			margin-right:10px;
			margin-left:20px;
			vertical-align:middle;
		}
		.disabled,.disabled:hover{
			background-color:#e6e6e6 !important;
			border:1px solid #e6e6e6 !important;
			color:gray;
		}
	</style>

	<script type="text/javascript">
		$(function () {
			<!--表格标题点击排序-->
			$("#express").click(function () {
				$("#express_div").show()//显
				$("#express").html(" 确认 ")//显
			});
		});
	</script>
</div>




